<!DOCTYPE html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>会议室预约</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/meeting/css/style.css">
    <link rel="stylesheet" href="/assets/public/layermobile/css/layer.css">
</head>
<body>
<div class="wraper normal" js="wapjs/meeting/js/index">
    <div class="head clearfix">
        <a href="{BEESCRM::U('/meeting/meeting/ucenter',array('account_id'=>$accountId))}" class="iconfont icon-zuo"></a>
        <span class="head-name">待审核申请</span>
    </div>
    <div class="tab clearfix">
        <a href="{BEESCRM::U('/meeting/meetingAppoint/unaudited',array('audited' => 1,'account_id'=>$accountId))}" class="tab-list <if condition='$audited eq 1'>visited </if>">待审核</a>
        <a href="{BEESCRM::U('/meeting/meetingAppoint/audited',array('audited' => 2,'account_id'=>$accountId))}" class="tab-list <if condition='$audited eq 2'>visited </if>">已审核</a>
    </div>
    <!--无记录-->
    <if condition="$data">
        <foreach name="data" item="vo">
            <a href="{BEESCRM::U('/meeting/meetingAppoint/appointDetails',array('basic_id' => $vo['basic_id'],'account_id'=>$accountId,'audited' => $audited))}" class="lists tb-mode">

                <if condition="$audited eq 2">
                    <div class="list-line text-green">审核时间
                        <span class="pull-right"><if condition="$vo.check_time neq 0">{BEESCRM:$vo.check_time|date='Y-m-d H:i:s',###}<else/></if></span>
                    </div>
                </if>

                <div class="list-line">
                    <div class="fullwidth tb-cell">
                        <p class="title">{BEESCRM:$vo.room_name}<if condition="$vo.room_type eq 1">(公共场所)</if><if condition="$vo.room_type eq 2">(露天场所)</if></p>
                        <!--待审核-->
                        <if condition="$audited eq 1">
                            <p class="text-gray pull-left">审核状态：
                                <if condition="$vo.multilevel eq 0">待初审</if>
                                <if condition="$vo.multilevel eq 1 and multilevel_pass eq 0">已初审，待复审</if>
                            </p>

                            <!--已审核-->
                            <elseif condition="$audited eq 2"/>
                            <if condition="$vo.multilevel_pass eq 1">
                                <p class="text-gray pull-left">审核状态：审核通过</p>
                                <elseif condition="$vo.multilevel_pass eq 2"/>
                                <p class="text-gray pull-left">审核状态：审核不通过</p>
                            </if>
                        </if>

                        <foreach name="vo.timeSection" item="v" key="k">
                            <p class="text-gray pull-left">申请时段{BEESCRM:$k+1}：{BEESCRM:$vo.start_time|date="md H:i",###}-{BEESCRM:$vo.end_time|date="md H:i",###}
                            <span>
                                <php>
                                    $weekday = array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
                                    echo $weekday[date('w',$vo['start_time'])];
                                </php>
                            </span>
                            </p>
                        </foreach>
                        <p class="text-gray pull-left">申请人：{BEESCRM:$vo.apply_name} 电话：{BEESCRM:$vo.mobile}</p>
                    </div>
                    <div class="tb-cell text-right">
                        <p class="iconfont icon-you"></p>
                    </div>
                </div>
            </a>
        </foreach>
        <else />
        <div class="norecord">
            <img src="/assets/meeting/images/news.png"/>
            <p class="text-gray">暂无记录</p>
        </div>

    </if>
</div>
<script type="text/javascript" src="/assets/public/seajs/sea.js"></script>
<script enter="publicjs/public" id="confnode" async="async" src="/assets/public/config.js"></script>
</body>
</html>